﻿using System;
using HigLabo.Net.Extensions;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public class Result : ResponseObject
    {
        /// <summary>
        /// 
        /// </summary>
        public String Location { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public String ID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public String Source { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsontext"></param>
        public Result(String jsontext)
        {
            this.SetProperty(jsontext);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsontext"></param>
        public override void SetProperty(String jsontext)
        {
            var d = this.SetData(jsontext);
            this.Location = d.ToString("location");
            this.ID = d.ToString("id");
            this.Source = d.ToString("source");
        }
    }

}
